package cn.stylefeng.guns.modular.order.mapper;

import cn.stylefeng.guns.modular.order.entity.OrderOutcountXlb;
import cn.stylefeng.guns.modular.order.model.params.OrderOutcountXlbParam;
import cn.stylefeng.guns.modular.order.model.result.OrderOutcountXlbResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 新零帮出库汇总 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2023-09-30
 */
public interface OrderOutcountXlbMapper extends BaseMapper<OrderOutcountXlb> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2023-09-30
     */
    List<OrderOutcountXlbResult> customList(@Param("paramCondition") OrderOutcountXlbParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2023-09-30
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") OrderOutcountXlbParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2023-09-30
     */
    Page<OrderOutcountXlbResult> customPageList(@Param("page") Page page, @Param("paramCondition") OrderOutcountXlbParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    Page<OrderOutcountXlbResult> customPageListNew(@Param("page") Page page, @Param("paramCondition") OrderOutcountXlbParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2023-09-30
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") OrderOutcountXlbParam paramCondition);

	boolean saveBatchList(@Param("list")List<OrderOutcountXlbParam> list);

	OrderOutcountXlbResult checkyouwu(@Param("paramCondition")OrderOutcountXlbParam ch);

	void deleteBySpec(@Param("paramCondition")OrderOutcountXlbParam de);

	OrderOutcountXlbResult findBySpec(@Param("paramCondition")OrderOutcountXlbParam param, @Param("operateId")Long operateId);

}
